<?php
ob_start();
if(isset($_SERVER['HTTP_APPVERSION'])){
include "./saesiteinfo.php";
}else{
 if(!file_exists("./install/install.lock")){
header('location:./install');
exit;
 }else{
include "./siteinfo.php";
 }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $sitename; ?>|WAP浏览器</title>
<link rel="shortcut icon" type="image/png" href="ico.png"/>
	<!--[if lt IE 9]>
	<script type="text/javascript" src="js/html5.js"></script>	<![endif]-->
<script src="ie/ie.js"></script>
	<link rel="stylesheet" type="text/css" href="css/base.css" />
	<link rel="stylesheet" type="text/css" href="css/layout.css?v=140221" />	
	<link rel="stylesheet" type="text/css" href="css/pages/index.css?v=140209" />
</head>
<body>
<!--Header-->
<div id="header">
	<div class="mid w960">
		<h1><a data-ca="header-logo" href="/"><span><?php echo $sitename; ?></span></a></h1>
		<ul class="top-menu">

						<li ><a data-ca="header-100g" href="index.php">首页<span class="arrow"></span></a></li>
						<li ><a data-ca="header-100g" href="wall.php">挂Q墙<span class="arrow"></span></a></li>
						<li ><a data-ca="header-100g" href="search.php">查询QQ状态<span class="arrow"></span></a></li>
					</ul>
		
	</div>
</div><!--header end-->
    
<!--Content-->
<link href="css/apprec.css" rel="stylesheet" type="text/css">
<script data-main="http://s5.ksyun.com/j/pan/v1.1/1384768937094/app/apprec/main" src="js/2.1.8.js" type="text/javascript"></script>
<div id="mainer">
			<div id="apprec-idx" class="apprec Cnt noDis">
<?php
if (empty($_GET['sid']) or empty($_GET['qq'])){
echo '<div align="center"><IFRAME src="http://open.pctowap.com/dowap/dowap.php?app_id='.$appid.'&u=3g.qq.com" style="width:30%; height:500px;" frameborder="0"></IFRAME></div>';
}else{
$sid=$_GET['sid'];
$qq=$_GET['qq'];
echo '<div align="center"><IFRAME src="http://open.pctowap.com/dowap/dowap.php?app_id='.$appid.'&u=q32.3g.qq.com/g/s?aid=nqqchatMain%26sid='.$sid.'&myqq=' . $qq.'" style="width:30%; height:500px;" frameborder="0"></IFRAME></div>';
}
?>
</div>
</div>
<!--Header-->
<div id="footer">
	<div class="copyright">
		<p><?php echo $banquan; ?> 程序基于：<a href="http://www.qq2.asia">QQ爱挂Q网 V1.6</a></p>
	</div>
</div>
</body>
</html>